package com.weixin.paleituo.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品创建订单请求bean
 *
 * @author fengzhen
 * @version v1.0, 2018/4/26
 */
public class SharedCreateOrderBody implements Serializable {
    private String token;
    private String userId;
    /**
     * 订单来源：android,ios
     */
    private String orderType;
    /**
     * 样板间id
     */
    private long ptId;
    /**
     * 配送方式（就是免邮）
     */
    private String transport;
    /**
     * 地址id
     */
    private long userAddress;
    /**
     * 发票
     */
    private OrderInvoiceBean invoice;
    /**
     * 传递用户选择的所有优惠券id以及金额money(money是Integer类型)
     */
    private List<CouponsBean> couponHistorys;
    /**
     * 商品
     * 传递商品的集合，该集合包含以下字段（id-商品id，goodsName-商品名，
     * storeId-店铺id，goodsSpecsInfo-规格属性，goodsSalenum-商品数量，
     * listUrl-商品猪图片路径，couponMoney-商品优惠价格，storePrice-商品价格，
     * storePrice-商品直供价，（用的哪个价格传哪个，剩余那个传null））
     */
    private List<OrderGoods> goods;

    public void setToken(String token) {
        this.token = token;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public void setPtId(long ptId) {
        this.ptId = ptId;
    }

    public void setTransport(String transport) {
        this.transport = transport;
    }

    public void setUserAddress(long userAddress) {
        this.userAddress = userAddress;
    }

    public void setInvoice(OrderInvoiceBean invoice) {
        this.invoice = invoice;
    }

    public void setCouponHistorys(List<CouponsBean> couponHistorys) {
        this.couponHistorys = couponHistorys;
    }

    public void setGoods(List<OrderGoods> goods) {
        this.goods = goods;
    }
}
